from api.tests.test_story_login import Login_story
from api.common.tools import findall_data
import pytest

@pytest.fixture()
def login():

    login = Login_story()
    token = findall_data(login.login_001(),LB='"token":"',RB='",')[0]
    return token